package com.niit.listener;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import com.niit.view.AddBookView;
import com.niit.view.MainView;

public class ToSaveBtnListener extends MouseAdapter {
	private MainView view;

	public ToSaveBtnListener(MainView view) {
		this.view = view;
	}

	@Override
	public void mouseClicked(MouseEvent e) {
		SaveBookListener listener = new SaveBookListener();
		new AddBookView("新增",listener);
		this.view.dispose();
	}

}
